<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%customer_answer}}".
 *
 * @property integer $id
 * @property integer $customer_info_id
 * @property string $question
 * @property string $answer
 */
class CustomerAnswer extends \app\components\AppActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'customer_answer';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['customer_info_id'], 'integer'],
            [['answer'], 'required'],
            [['answer'], 'string'],
            [['question'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'customer_info_id' => 'Customer Info ID',
            'question' => 'Question',
            'answer' => 'Answer',
        ];
    }
}
